package com.xdy.mdc.activity;

import android.widget.Toast;

import com.google.android.material.snackbar.Snackbar;
import com.xdy.mdc.databinding.ActivitySnackbarBinding;

public class SnackbarActivity extends BaseViewModelActivity<ActivitySnackbarBinding> {
    @Override
    protected void initViews() {
        super.initViews();
        Snackbar.make(binding.getRoot(),"提示内容",Snackbar.LENGTH_SHORT)
                .setAction("撤销", v -> Toast.makeText( SnackbarActivity.this, "撤销内容", Toast.LENGTH_SHORT ).show())
                .show();
    }
}